package com.zrf.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zrf.gulimall.common.database.utils.PageUtils;
import com.zrf.gulimall.product.entity.SpuInfoEntity;
import com.zrf.gulimall.product.vo.SpuSaveVo;

import java.util.Map;

/**
 * spu信息
 *
 * @author zrf
 * @email 120662332@qq.com
 * @date 2021-01-23 16:07:18
 */
public interface SpuInfoService extends IService<SpuInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

	/**
	 * 保存商品信息
	 * @param spuSaveVo 商品信息
	 */
	void saveSpuInfo(SpuSaveVo spuSaveVo);

	/**
	 * 商品上架
	 * @param spuId
	 */
	void spuUp(Long spuId);

	/**
	 * 根据商品id查询spu信息
	 * @param skuId 商品id
	 * @return
	 */
	SpuInfoEntity getSpuInfoBySkuId(Long skuId);
}

